// components/mylist-item/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    playlist:{
      type:Object,
      value:{}
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleItemClick(event){
      const listId =event.currentTarget.dataset.item.id
      if (this.properties.playlist[0].categoryId != null) {
        const title = event.currentTarget.dataset.item.desc
        wx.navigateTo({
          url:"../../pages/detail-songs/index?podcastId="+listId+"&title="+title
        })
      }else{
        wx.navigateTo({
          url:"../../pages/detail-songs/index?listId="+listId+"&mylist=1"
        })
      }
   
    }
  }
})
